﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PutAwayRuleDetail.aspx.cs" Inherits="WMS6.Web.Configuration.PutAwayRuleDetail" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>PutAwayDetail</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>
    <script src="../Js/util.js" id="js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>    
    
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initDetailPage();
        }
        
        //弹出窗口选择货位
        function selectLocation(obj)
        {
            var rtnValue = popModalWindow('../Configuration/LocationQuery.aspx?action='+escape(obj.id.toString()),'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById(obj.id.toString()).focus();
                document.getElementById(obj.id.toString()).value = rtnValue;
            }
        }
        
        //弹出窗口选择储区
        function selectZone()
        {
            var rtnValue = popModalWindow('../Configuration/ZoneQuery.aspx?action=txtZone','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtZone").focus();
                document.getElementById("txtZone").value = rtnValue;
            }
        }
        //弹出窗口选择筛选条件
        function selectLocSelection()
        {
            var rtnValue = popModalWindow('../Configuration/LocSelectionQuery.aspx?action=txtLocSel&RECORDTYPE=locSel', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');        
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById('txtLocSel').focus();
                document.getElementById('txtLocSel').value = rtnValue;
            }
        }
        function chkClick(obj,id)
        {
            if(obj.checked)
            {
                obj.checked = true;
                document.getElementById(id).checked=false;
            }
        }
        
    </script>
</head>
<body>
    <form id="F2173" runat="server">
    <div>
    
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom"><asp:Label ID="lblAreaDetail" runat="server" 
                            CssClass="label_header" Text="上架规则" meta:resourcekey="lblAreaDetail"></asp:Label></td>
                    <td><asp:Button ID="btnCancel" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnCancel%>" 
                            AccessKey="c" onclick="btnCancel_Click"  /></td>
                    <td><asp:Button ID="btnSave" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSave%>" 
                            AccessKey="s" onclick="btnSave_Click"  /></td>
                                 <td><asp:Button ID="btnSaveContinue" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSaveContinue%>"
                            AccessKey="s" onclick="btnSaveContinue_Click"  /></td>
                </tr>
            </table>
        </div>
        
        <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                meta:resourcekey="lblMsg"></asp:Label>
        </div>
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL" id="imgL1"></div>
            </div>
            <div class="tabLabelCont tabCur" id="div1">
                <asp:Label ID="one1" runat="server" class="hover" Text="上架规则明细" 
                    meta:resourcekey="one1"></asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="imgR1"></div>
            </div>
        </div>
        
        <div id="div_content">
             <div id="con_one_1" style="display: block;">
                 <table width="540" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblLineID" CssClass="label" runat="server" Text="行号" 
                                meta:resourcekey="lblLineID" ></asp:Label>
                        </td>
                        <td colspan="2">
                            <asp:Label ID="lblPutawayRuleID" CssClass="label" runat="server" Text="上架规则代码" 
                                meta:resourcekey="lblPutawayRuleID"></asp:Label>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtLineID" runat="server" CssClass="textbox" Enabled="False" 
                                meta:resourcekey="txtLineID"></asp:TextBox><font class="must_input">*</font>
                        </td>
                        <td>
                            <asp:TextBox ID="txtPutawayRuleID" CssClass="textbox" runat="server" 
                                Enabled="False" meta:resourcekey="txtPutawayRuleID"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                         <td colspan="2">
                            <asp:Label ID="lblStrategies" CssClass="label" runat="server" Text="上架策略" 
                                 meta:resourcekey="lblStrategies"></asp:Label>
                        </td>
                        <td>
                            &nbsp;</td>                        
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:DropDownList ID="ddlStrategies" runat="server" CssClass="largeselectbox" 
                                onselectedindexchanged="ddlStrategies_SelectedIndexChanged" 
                                AutoPostBack="True" meta:resourcekey="ddlStrategies"></asp:DropDownList>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblFromLoc" runat="server" CssClass="label" Text="来源货位" 
                                meta:resourcekey="lblFromLoc"></asp:Label>
                            <asp:Label ID="lblFromLocStar" Visible="False" runat="server" Text="*" 
                                ForeColor="Red" meta:resourcekey="lblFromLocStar"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblToLoc" runat="server" CssClass="label" Text="上架货位" 
                                meta:resourcekey="lblToLoc"></asp:Label>
                            <asp:Label ID="lblToLocStar" Visible="False" runat="server" Text="*" 
                                ForeColor="Red" meta:resourcekey="lblToLocStar"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblZone" runat="server" CssClass="label" Text="上架区" 
                                meta:resourcekey="lblZone"></asp:Label><asp:Label ID="lblZoneStar" 
                                Visible="False" runat="server" Text="*" ForeColor="Red" 
                                meta:resourcekey="lblZoneStar"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtFromLoc" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtFromLoc"></asp:TextBox><img src="../Images/icon_find.gif" runat="server" id="imgFromLoc" alt="select one item" class="img" onclick="selectLocation(txtFromLoc);"/>
                        </td>
                        <td>
                            <asp:TextBox ID="txtToLoc" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtToLoc"></asp:TextBox><img src="../Images/icon_find.gif" runat="server" id="imgToLoc" alt="select one item" class="img" onclick="selectLocation(txtToLoc);"/>
                        </td>
                        <td>
                            <asp:TextBox ID="txtZone" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtZone"></asp:TextBox><img src="../Images/icon_find.gif" runat="server" id="imgZone" alt="select one item" class="img" onclick="selectZone();"/>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblLocStateRestriction" runat="server" CssClass="label" 
                                Text="货位状态限制" meta:resourcekey="lblLocStateRestriction"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lblDimRestrictions" runat="server" CssClass="label" Text="尺寸约束" 
                                meta:resourcekey="lblDimRestrictions"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lblLocSel" runat="server" CssClass="label" Text="上架筛选条件" 
                                meta:resourcekey="lblLocSel"></asp:Label>
                            
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:CheckBox ID="chbLocStateRestriction02"   runat="server" 
                                CssClass="checkbox" meta:resourcekey="chbLocStateRestriction02"></asp:CheckBox>
                        </td>
                        <td>
                            <asp:CheckBox ID="chbDimRestrictions02" runat="server" 
                                CssClass="mediumselectbox" meta:resourcekey="chbDimRestrictions02"></asp:CheckBox>
                        </td>
                        <td>
                         <asp:TextBox ID="txtLocSel" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtLocSel"></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectLocSelection();"/></td>
                    </tr>
                    <tr>
                        <td>
                            <asp:CheckBox ID="chbLocStateRestriction03"   runat="server" 
                                CssClass="checkbox" meta:resourcekey="chbLocStateRestriction03"></asp:CheckBox>
                        </td>
                        <td>
                            <asp:CheckBox ID="chbDimRestrictions03" runat="server" 
                                CssClass="mediumselectbox" meta:resourcekey="chbDimRestrictions03"></asp:CheckBox>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            <asp:CheckBox ID="chbLocStateRestriction04" runat="server" 
                                CssClass="mediumselectbox" meta:resourcekey="chbLocStateRestriction04"></asp:CheckBox>
                        </td>
                        <td>
                            <asp:CheckBox ID="chbDimRestrictions04" runat="server" 
                                CssClass="mediumselectbox" meta:resourcekey="chbDimRestrictions04"></asp:CheckBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:CheckBox ID="chbLocStateRestriction05" runat="server" 
                                CssClass="mediumselectbox" meta:resourcekey="chbLocStateRestriction05"></asp:CheckBox>
                        </td>
                        <td>
                            <asp:CheckBox ID="chbDimRestrictions05" runat="server" 
                                CssClass="mediumselectbox" meta:resourcekey="chbDimRestrictions05"></asp:CheckBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                         <td>
                            &nbsp;
                        </td>
                        <td>
                            <asp:CheckBox ID="chbDimRestrictions06" runat="server" 
                                CssClass="mediumselectbox" meta:resourcekey="chbDimRestrictions06"></asp:CheckBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                   <tr>
                        <td>
                            <asp:CheckBox ID="chbLocStateRestriction01" runat="server" CssClass="checkbox" 
                                Visible="False" meta:resourcekey="chbLocStateRestriction01"></asp:CheckBox>
                        </td>
                        <td>
                            <asp:CheckBox ID="chbDimRestrictions01" runat="server" 
                                CssClass="mediumselectbox" Visible="False" 
                                meta:resourcekey="chbDimRestrictions01"></asp:CheckBox>
                        </td>
                        <td></td>
                    </tr>
                     <tr>
                        <td>
                            <asp:CheckBox ID="chbIsActive" runat="server" CssClass="checkbox" Text="启用" 
                                Checked="True" meta:resourcekey="chbIsActive" />
                        </td>
                        <td></td>
                        <td>
                        </td>
                    </tr>
                 </table>
             </div>
        </div>         
        <input type="hidden" id="hdnFrom" runat="server" />
        <input type="hidden" id="hdntype" runat="server" />
    </div>
    </form>
</body>
</html>
